package handlers

import (
	"MBTIx/dba"
	"MBTIx/models"
	"net/http"

	"github.com/gin-gonic/gin"
	"github.com/jmoiron/sqlx"
)

func Get_college(c *gin.Context){
	db,_ := c.Get("db")

	var colleges []models.College
	dba.GetAllCollege(db.(*sqlx.DB),&colleges)

	c.JSON(http.StatusOK,colleges)
}